BMI\Plugin\BMI_Ajax D

Total Complexity 509
Dependencies 17
Dependents 1
Total lines 2,120
Lines of code 1,562
Logical lines of code 1,291
Comment lines 158
Methods 40
Properties 0

Methods 40

Method Rating Maintainability Complexity Lines of code
parseFilesForBackup()
D
24
55 128
restoreBackup()
D
21
52 165
prepareAndMakeBackup()
D
25
45 133
saveFilesConfig()
D
29 36 113
scanFilesForBackup()
D
33 32 86
createBackup()
C
36 32 68
__construct()
C
36 31 69
saveOtherOptions()
C
34 30 79
handleQuickMigration()
C
29 27 114
calculateCron()
C
33 26 91
migrationExceptionHandler()
B
36 21 68
backupErrorHandler()
B
40 19 52
saveStorageConfig()
A
43 13 45
checkIfPHPCliExist()
A
48 9 31
saveStorageTypeConfig()
A
47 8 32
isMigrationLocked()
S
53 7 19
resetLatestLogs()
S
51 6 24
downloadFile()
S
47 5 36
removeBackupFile()
S
54 6 19
dirSize()
S
55 6 18
sendTestMail()
S
59 5 13
isRunningBackup()
S
60 5 11
toggleBackupLock()
S
57 4 15
makeBackupName()
S
48 2 33
getDynamicNames()
S
57 3 17
siteURL()
S
69 4 5
revertUnameProcess()
S
64 3 9
stopBackup()
S
63 3 10
fixUnameFunction()
S
61 2 11
resetConfiguration()
S
70 2 6
fixLitespeed()
S
76 1 4
revertLitespeed()
S
76 1 4
continueRestoreProcess()
S
91 1 2
backupExceptionHandler()
S
70 1 6
handleChunkUpload()
S
80 1 3
getBackupsList()
S
69 1 6
getSiteData()
S
69 1 6
migrationErrorHandler()
S
70 1 6
dismissErrorNotice()
S
81 1 3
debugging()
S
91 1 2